Skip to content

feat: language dropdown enhancements #16010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

JoeChenJ
Copy link
Contributor

@JoeChenJ JoeChenJ commented Aug 3, 2025

Description

  • Makes the dropdown searchable
  • Sorts languages alphabetically

Preview Link

https://deploy-preview-16010--ethereumorg.netlify.app/en/wallets/find-wallet/

Related Issue

Closes #15997

@github-actions github-actions bot added content 🖋️ This involves copy additions or edits translation 🌍 This is related to our Translation Program labels Aug 3, 2025
Copy link

netlify bot commented Aug 3, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit b34d3f8
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/68956e812001ee0008dfd66f
😎 Deploy Preview https://deploy-preview-16010--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 56 (🟢 up 5 from production)
Accessibility: 95 (🟢 up 1 from production)
Best Practices: 91 (🔴 down 1 from production)
SEO: 99 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

key={language.langCode}
value={language.langCode}
className={!isVisible ? "hidden" : ""}
>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using hidden here instead of filtering the array directly, to avoid SelectValue losing its value and in turn leads to Input losing focus when searchQuery changes

Copy link
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JoeChenJ!

Couple things I'm noticing on initial glance:

image

Seeing a layout bug (Brave and Safari) with space above the input which looks poor visually.

Also, in my opinion, focus should be set to the search input upon entering that menu. Should be able to click once and start typing, and ideally "enter" executes top match (feel free to weigh in if you disagree @konopkja)

Right now when I click, I can't even tab into that field by keyboard, which we should be able to for good a11y.

@JoeChenJ
Copy link
Contributor Author

JoeChenJ commented Aug 7, 2025

Thanks for the feedback @wackerow! Just pushed a commit for those issues.

I also noticed the same issues in the wallet dropdown on layer-2/networks page. Should I fix that here as well or open another pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content 🖋️ This involves copy additions or edits translation 🌍 This is related to our Translation Program
Projects
None yet
Development

Successfully merging this pull request may close these issues.

change request: language dropdown on find-wallet page enhancements
2 participants